package cc.spider.core.queue;

import cc.spider.model.TaskInfo;

abstract public class AbsUniqueQueue implements IUniqueQueue {
    @Override
    public boolean enqueue(TaskInfo taskInfo) {
        if (this.isUnique(taskInfo)) {
            return this.enqueueWhenUnique(taskInfo);
        } else {
            return true;
        }
    }
}
